import request from '@/utils/request'

// 查询客户资金流水列表
export function listCuscapitalflow(query) {
  return request({
    url: '/busi/cuscapitalflow/list',
    method: 'get',
    params: query
  })
}

// 查询客户资金流水详细
export function getCuscapitalflow(id) {
  return request({
    url: '/busi/cuscapitalflow/' + id,
    method: 'get'
  })
}

// 新增客户资金流水
export function addCuscapitalflow(data) {
  return request({
    url: '/busi/cuscapitalflow',
    method: 'post',
    data: data
  })
}

// 修改客户资金流水
export function updateCuscapitalflow(data) {
  return request({
    url: '/busi/cuscapitalflow',
    method: 'put',
    data: data
  })
}

// 删除客户资金流水
export function delCuscapitalflow(id) {
  return request({
    url: '/busi/cuscapitalflow/' + id,
    method: 'delete'
  })
}

// 导出客户资金流水
export function exportCuscapitalflow(query) {
  return request({
    url: '/busi/cuscapitalflow/export',
    method: 'get',
    params: query
  })
}